package com.xebest.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 读取配置文件参数
 * Created by zqt on 2017/6/20 0020.
 */
@Configuration
@ConfigurationProperties(prefix = ParamConfig.REST_PREFIX)
public class ParamConfig {

    public final static String REST_PREFIX = "erp";

    /**
     * 图片访问路径
     */
    private String imgUrl;
    
    /**
     * 上传图片服务器地址
     */
    private String upoladImgUrl;

    
	public ParamConfig() {
		super();
	}

	public String getImgUrl() {
	
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
	
		this.imgUrl = imgUrl;
	}

	public String getUpoladImgUrl() {
	
		return upoladImgUrl;
	}

	public void setUpoladImgUrl(String upoladImgUrl) {
	
		this.upoladImgUrl = upoladImgUrl;
	}

	@Override
	public String toString() {
		return "ProParamConfig [imgUrl=" + imgUrl + ", upoladImgUrl=" + upoladImgUrl + "]";
	}
    
    
    
}
